package com.yjt.javatest.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category {
    private Integer id;
    private String name;
    private Long userId;
    /**
     fatherId为0时表示为根节点
     fatherId不为0时表示其有父节点为子分类
     fatherId为0时删除改分类将会将其子分类一并删除
     */
    private Integer fatherId;
}
